package com.wk.code.wkserver.controller.admin;

import com.wk.code.wkserver.controller.common.BaseController;
import com.wk.code.wkserver.request.admin.AdminFeedbackRequest;
import com.wk.code.wkserver.request.admin.NotifyRequest;
import com.wk.code.wkserver.request.app.FeedbackRequest;
import com.wk.code.wkserver.response.result.R;
import com.wk.code.wkserver.service.IFeedbackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: wangqiang
 * @create: 2021-08-23 13:46
 */
@RestController
@RequestMapping("admin/feedback")
@Api(tags = "admin-用户反馈管理")
public class AdminFeedbackController extends BaseController {

    @Resource
    private IFeedbackService feedbackService;


    /**
     * 分页
     *
     * @param request 请求参数
     * @return R
     */
    @PostMapping("/page")
    private R page(@RequestBody AdminFeedbackRequest request) {
        return R.success(feedbackService.page(request));
    }


}
